package apiday04.file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        File dir = new File("demo");//默认为./demo
        if (dir.exists()){
            System.out.println("目录已存在！");
        }else {
            dir.mkdir();
            System.out.println("目录已创建！");
        }
    }
}
